


local global = [[

#define SOL_ALL_SAFETIES_ON 1
#include <sol/sol.hpp>
#include "global.h"



namespace LuaHelp {
	sol::table open_luaParameters(sol::this_state L) {
		sol::state_view lua(L);
		sol::table module=lua.script(R"(
		
%s		
		
		)");
		return module;
	}
}



extern "C" int luaopen_luaParameters(lua_State* L)
{
	return sol::stack::call_lua(L, 1, LuaHelp::open_luaParameters );
}

]];

local file = io.open("../../../lua/Parameters.lua","r")
 
local str = '';
for line in file:lines() do
	 str = str..line..'\n'
end
file:close()

global = string.format( global, str )

---------------------------------------------------------------------------------


local file = io.open("../luaParameters/global.cpp","w")
file:write(global)
file:close()